﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Store Manager/SM_panel.master" AutoEventWireup="true" CodeFile="SM_ChangePW.aspx.cs" Inherits="Store_Manager_SM_ChangePW" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style2
        {
            width: 100%;
        }
        .style3
        {
            width: 126px;
        }
        .style5
        {
            font-size: medium;
            font-weight: bold;
            width: 93px;
        }
        .style6
        {
            font-size: medium;
            font-weight: bold;
            color: #000000;
            width: 93px;
        }
        .style7
        {
            color: #FF0000;
        }
        .style8
        {
            font-size: medium;
            font-weight: bold;
            color: #000000;
            font-family: "Times New Roman";
        }
        .style9
        {
            font-size: medium;
            color: #808080;
            font-family: "Times New Roman";
            text-align: justify;
        }
        .style10
        {
            text-align: left;
            width: 93px;
        }
        .style11
        {
            font-size: medium;
            color: #666666;
            font-family: "Times New Roman";
            text-align: justify;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div> 
        <table class="style2">
            <tr>
                <td class="style3">
                    &nbsp;</td>
                <td class="style11" colspan="2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style3">
                    &nbsp;</td>
                <td class="style11" colspan="2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style3">
                    &nbsp;</td>
                <td class="style11" colspan="2">
                    <strong>To change your password,enter your current password in the field 
                    below,followed by the new password.<br />
                    Confirm the new password to make sure you did not misspell it.</strong></td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style3" rowspan="6">
                    <dx:ASPxImage ID="ASPxImage1" runat="server" Height="170px" 
                        ImageUrl="~/images/Keychain_Access_Icon.png" Width="226px">
                    </dx:ASPxImage>
                </td>
                <td class="style9" colspan="2">
                    &nbsp;</td>
                <td class="style9">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style10">
        <asp:Label ID="Label1" runat="server" Text="Current password" Width="132px" 
            Font-Bold="True" ForeColor="Black" CssClass="style8"></asp:Label>
                </td>
                <td>
        <asp:TextBox ID="txt_cpassword" runat="server" TextMode="Password"></asp:TextBox>
                    <strong>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txt_cpassword" 
            ErrorMessage="Please enter Current password" CssClass="style7"></asp:RequiredFieldValidator>
                    </strong>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style10">
         <asp:Label ID="Label2" runat="server" Text="New password" Width="102px" 
            Font-Bold="True" ForeColor="Black" CssClass="style8"></asp:Label>
                </td>
                <td>
        <asp:TextBox ID="txt_npassword" runat="server" TextMode="Password"></asp:TextBox>
                    <strong>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txt_npassword" ErrorMessage="Please enter New password" 
                        CssClass="style7"></asp:RequiredFieldValidator>
                    </strong>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style10">
        
         <asp:Label ID="Label3" runat="server" Text="Confirm password" Width="155px" 
            Font-Bold="True" ForeColor="Black" CssClass="style8"></asp:Label>

                </td>
                <td>

        <asp:TextBox ID="txt_ccpassword" runat="server" TextMode="Password"></asp:TextBox>   

                    <strong>

        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="txt_ccpassword" 
            ErrorMessage="Please enter Confirm  password" CssClass="style7"></asp:RequiredFieldValidator>

                    </strong>   

                </td>
                <td>

                    &nbsp;</td>
                <td>

                    &nbsp;</td>
                <td>

                    &nbsp;</td>
                <td>

                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style5">

                    &nbsp;</td>
                <td>
                    <strong>

        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToCompare="txt_npassword" ControlToValidate="txt_ccpassword" 
            ErrorMessage="Password Mismatch" CssClass="style7" Font-Bold="False" Font-Size="Small" 
                        ForeColor="Red"></asp:CompareValidator>    
                    </strong></td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style6">
                    <dx:ASPxLabel ID="ASPxLabel2" runat="server" ForeColor="#009933">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <asp:Button ID="btn_update" runat="server" Font-Bold="True" BackColor="#CCFF99" 
                        onclick="btn_update_Click" Text="Change Password" />
    <asp:Label ID="lbl_msg" Font-Bold="True" BackColor="#FFFF66" ForeColor="#FF3300" runat="server" Text=""></asp:Label><br /></td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        <br />  <br />
        <br />  <br />
        
    </div>
</asp:Content>

